package com.droidathletics.entity;

public class Sportsman extends Person {

	public Sportsman( long ID, String name, String lastName, double height, double weight,
				long phoneNumber)
	{
		this.ID = ID;
		this.name = name;
		this.lastName = lastName;
		this.height = height;
		this.weight = weight;
		this.phoneNumber = phoneNumber;
	}
	
	public void addCompetition(String nameSportsman, String lastNameSportsman,
			                   String nameCompetition){
		performanceCompetition = new PerformanceCompetition(nameSportsman, lastNameSportsman,
				                                            nameCompetition, new Chronometer());
	}
	
	public PerformanceCompetition getPerformanceCompetition() {
		return performanceCompetition;
	}

	public void setPerformanceCompetition(
			PerformanceCompetition performanceCompetition) {
		this.performanceCompetition = performanceCompetition;
	}


	private PerformanceCompetition performanceCompetition;
}
